package com.example.mywebrtc.bean;

import java.util.List;

public class LocalSdpBean {

    public RxCapsDTO rx_caps;
    public NetInfoDTO net_info;
    public EncryptionDTO encryption;
    public TxStreamDTO tx_stream;

    public static class RxCapsDTO {
        public AudioCapsDTO audio_caps;
        public VideoCapsDTO video_caps;
        public RawCapsDTO raw_caps;

        public static class AudioCapsDTO {
            public String direction;
            public List<CapsDTO> caps;

            public static class CapsDTO {
                public String codec;
                public int pt;
                public int rtx_pt;
            }
        }

        public static class VideoCapsDTO {
            public String direction;
            public List<CapsDTO> caps;

            public static class CapsDTO {
                public String codec;
                public int pt;
                public int rtx_pt;
            }
        }

        public static class RawCapsDTO {
            public String direction;
            public List<CapsDTO> caps;

            public static class CapsDTO {
                public String codec;
                public int pt;
                public int rtx_pt;
            }
        }
    }

    public static class NetInfoDTO {
        public int port;
        public String candidate_ip;
        public String ice_ufrag;
        public String ice_pwd;
    }

    public static class EncryptionDTO {
        public int enable_dtls;
        public String dtls_fingerprint;
        public int dtls_active;
        public int enable_srtp;
        public String srtp_key;
    }

    public static class TxStreamDTO {
        public int sender_ssrc;
        public List<StreamListDTO> stream_list;

        public static class StreamListDTO {
            public String ssrc;
            public String rtx_ssrc;
            public String codec;
            public int session_type;
            public int track_id;
            public int reso_id;
        }
    }
}
